/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.user;

import java.util.Observable;

/**
 *
 * @author CUNEYT
 */
public class User extends Observable {

    private String name;
    private String surname;
    private String username;
    private char[] password;
    private String role;

    public User(String name, String surname, String username, char[] password, String role) {
        this.name = name;
        this.surname = surname;
        this.username = username;
        this.password = password;
        this.role = role;
    }

    /*User types in the system*/
    public static final String STAFF = "staff";
    public static final String GOVERNOR = "governor";
    public static final String DIRECTOR = "director";
    public static final String ADMIN = "admin";
    /*Departments in the company*/
    public static final String CREATIVE = "creative";
    public static final String ACCOUNTS = "accounts";
    public static final String COMPUTING = "computing";

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public char[] getPassword() {
        return password;
    }

    public void setPassword(char[] password) {
        this.password = password;
    }

    public String getSurname() {
        return surname;
    }

    public void setSurname(String surname) {
        this.surname = surname;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return getName() + " " + getSurname();
    }
}
